/**
 * Copyright 2017 汉威.智慧环保事业部.
 * Created by 毛超然 on 2017/09/13 15:11.12
 * <p>
 * 溯源service层方法
 */
package com.hw.one.peach.core.service;

import com.hw.one.core.result.MsgResult;

import java.util.List;
import java.util.Map;

public interface ITraceAnalysisService {


    /**
     * 根据siteCode和具体时间点查询溯源追踪数据
     *
     * @param paramMap
     * @return
     * @throws Exception
     */
    Map<String, Object> findTraceabilityData(Map<String, Object> paramMap) throws Exception;

    /**
     * 根据siteCode和时间查询时间段内的溯源追踪数据
     *
     * @param paramMap
     * @return
     * @throws Exception
     */
    List<Map<String, Object>> findTraceabilityDatas(Map<String, Object> paramMap) throws Exception;

    /**
     * 实时生成并查询溯源追踪数据
     *
     * @param paramMap
     * @return
     * @throws Exception
     */
    MsgResult findRealTraceabilityDatas(Map<String, Object> paramMap) throws Exception;


    /**
     * 调取web接口溯源分析
     *
     * @param paramMap
     * @return 成功返回true;三次尝试调取失败后返回false；
     * @throws Exception
     */

    MsgResult tracingAnalysis(Map<String, String> paramMap, int num, int time) throws Exception;

}
